Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  All  ADAM  OU  Attributes  and  Values  

 Content of List All ADAM OU Attributes and Values.vbs
MD5 Hash: 58617967FB655C5B56E22D07B06EBB61
' Description: Lists all the attributes and values for an ADAM OU named Accounting.


On Error Resume Next

Set objUser = _
GetObject("LDAP://localhost:389/ou=Accounting,dc=fabrikam,dc=com")
Set objUserProperties = GetObject _
("LDAP://localhost:389/schema/organizationalUnit")

For Each strAttribute in objUserProperties.MandatoryProperties
strValues = objUser.GetEx(strAttribute)
For Each strItem in strValues
Wscript.Echo strAttribute & " -- " & strItem
Next
Next

For Each strAttribute in objUserProperties.OptionalProperties
strValues = objUser.GetEx(strAttribute)
If Err = 0 Then
For Each strItem in strValues
Wscript.Echo strAttribute & " -- " & strItem
Next
Else
Wscript.Echo strAttribute & " -- No value set"
Err.Clear
End If
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a